package com.xq.shop.dao;

import java.util.List;

import com.xq.shop.vo.SearchObject;

public interface IBaseDAO<T> {

	public void delete(List<Long> ids);
	
	public T get(long id);
	
	public List<T> get(Long[] ids);
	
	public List<T> get(SearchObject search);
	
	public List<T> getAll();
	
	public long getCount(SearchObject search);
	
	public void save(T instance);
	
	public void save(List<T> list);
	
	public void saveOrUpdate(T instance);
	
	public void saveOrUpdateAll(List<T> list);
	
	public void update(T instance);

	public void update(List<T> list);
}
